package beautiful.butterfly.drds.binlog.event.data;

import beautiful.butterfly.drds.binlog.event.EventData;
import beautiful.butterfly.drds.binlog.event.EventHeader;
import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;

public class FormatDescriptionEventData implements EventData
{

    private static final long serialVersionUID = 1465779438441715909L;
    @Setter
    @Getter
    private int binlogVersion;
    @Setter
    @Getter
    private String serverVersion;
    @Setter
    @Getter
    private int headerLength;
    @Setter
    @Getter
    private EventHeader eventHeader;


    @Override
    public String toString()
    {
        return "FormatDescriptionEventData [binlogVersion=" + binlogVersion + ", serverVersion=" + serverVersion
                + ", headerLength=" + headerLength + "]";
    }


    @Override
    public void setEventHeader(EventHeader eventHeader)
    {
        this.eventHeader = eventHeader;
    }

    @Override
    public ArrayList<JSONObject> toJson()
    {
        // TODO Auto-generated method stub
        return null;
    }

}
